/**
 * Copyright (c) 2016 Lenovo Group
 * All Rights Reserved.
 * 
 * Project Name:lmrp-base
 * Create Time: 2016年1月27日 上午10:26:30
 */
package com.lenovo.lmrp.base.mq;

/**
 * @author zhangzhenga
 *
 */
public enum MQItsmGatewayEvent {

	NEWTICKET(2001), UPDATETICKET(2002);

	private int event;

	private MQItsmGatewayEvent(int event) {
		this.event = event;
	}

	public int getEvent() {
		return this.event;
	}

	public static MQItsmGatewayEvent getMQItsmGatewayEvent(int event) {
		for (MQItsmGatewayEvent itsmEvent : MQItsmGatewayEvent.values())
			if (itsmEvent.getEvent() == event)
				return itsmEvent;
		return null;
	}
}
